/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-07-14
 * Time: 17:40
 */
public class Test {
    public static void main(String[] args) {
        MinStack minStack = new MinStack();
        //512 -1024 -1024 512
        minStack.push(512);
        minStack.push(-1024);
        minStack.push(-1024);
        minStack.push(512);
        minStack.pop();
        System.out.println(minStack.getMin());//-1024
        minStack.pop();
        System.out.println(minStack.getMin());//-1024
        minStack.pop();
        System.out.println(minStack.getMin());//512
    }
}
